package com.yangwudongxi.sqlloghelper.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * SQL查询请求
 *
 * @author 氧屋东西
 */
@Data
public class QueryRequest {
    
    @NotBlank(message = "SQL语句不能为空")
    private String sql;
    
    @NotNull(message = "数据库配置不能为空")
    @Valid
    private DatabaseConfig dbConfig;
}